package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User findByUsername(@Param("username")String username);

    void add(User user);

    void setUserAndRole(@Param("checkItemIds")Integer checkItemIds,@Param("id")Integer id);

    List<User> findByCondition(@Param("queryString")String queryString);

    User findById(@Param("id")Integer id);

    void deleteAssociation(@Param("id")Integer id);

    void edit(User user);

    Integer findCountById(@Param("id")Integer id);

    void deleteById(@Param("id")Integer id);

    List<User> findAll();

    User checkUsername(String username);
}
